package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.CollageDao;
import com.platform.entity.CollageEntity;
import com.platform.service.CollageService;

//中大团队扩展
/**
 * 拼单表Service实现类
 *
 * @author wuf
 * @date 2018-11-23
 */
@Service("collageService")
public class CollageServiceImpl implements CollageService {
    @Autowired
    private CollageDao collageDao;

    @Override
    public CollageEntity queryObject(Integer id) {
        return collageDao.queryObject(id);
    }

    @Override
    public List<CollageEntity> queryList(Map<String, Object> map) {
        return collageDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return collageDao.queryTotal(map);
    }

    @Override
    public int save(CollageEntity collage) {
        return collageDao.save(collage);
    }

    @Override
    public int update(CollageEntity collage) {
        return collageDao.update(collage);
    }

    @Override
    public int delete(Integer id) {
        return collageDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return collageDao.deleteBatch(ids);
    }
}
